module.exports = {
    presets: [
        [
            "@babel/preset-env",
            {
                modules: false,
                useBuiltIns: "usage", // 自动按需引入 polyfill
                corejs: 3
            }
        ]
    ],
    plugins: [
        "@babel/plugin-proposal-nullish-coalescing-operator",
        "@babel/plugin-transform-runtime" // 添加这个插件来处理 runtime
    ]
};
